from rest_framework import serializers
from exam.models import Exam, Question, QuestionAnswer

class ExamSerializer(serializers.ModelSerializer):
    """
    管理
    """
    class Meta:
        model = Exam
        fields = '__all__'


class QuestionSerializer(serializers.ModelSerializer):
    """
    商品管理
    """
    class Meta:
        model = Question
        fields = '__all__'


class QuestionAnswerSerializer(serializers.ModelSerializer):
    """
    商品答案管理
    """
    class Meta:
        model = QuestionAnswer
        fields = '__all__'